#include "cppTutorOperatorOverloading.h"

#include <iostream>

using namespace std;

CcppTutorOperatorOverloading :: CcppTutorOperatorOverloading ()
{
	m_nValue = 0;
}

CcppTutorOperatorOverloading :: CcppTutorOperatorOverloading (int nValue)
{
	m_nValue = nValue;
}

CcppTutorOperatorOverloading :: ~CcppTutorOperatorOverloading ()
{
}

int CcppTutorOperatorOverloading :: m_nGetValue ()
{
	return m_nValue;
}

CcppTutorOperatorOverloading operator+ (const CcppTutorOperatorOverloading &obj1, 
 									    const CcppTutorOperatorOverloading &obj2)
{
	return CcppTutorOperatorOverloading(obj1.m_nValue + obj2.m_nValue);
}

CcppTutorOperatorOverloading operator- (const CcppTutorOperatorOverloading &obj1, 
 									    const CcppTutorOperatorOverloading &obj2)
{
	return CcppTutorOperatorOverloading(obj1.m_nValue - obj2.m_nValue);
}